package cn.good.yan.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 演示：
 *     普通接口，演示 sentinel 流控
 *          （QPS、线程数、关联、预热、排队等待）
 * @author shengren.yan
 * @create 2024-01-09
 */
@RestController
@RequestMapping("/t1")
@Slf4j
public class Test1Controller {

    @Value("${server.port}")
    private String serverPort;

    @GetMapping("/testA")
    public String testA() {
        return "------testA";
    }

    @GetMapping("/testB")
    public String testB() {
        return "------testB";
    }

}
